﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.TradeChannel.DefaultImpl
{
    /// <summary>
    /// 通道结果
    /// </summary>
    [Serializable]
    public abstract class ATradeChannelResult : IChannel
    {
        protected ATradeChannelResult(IChannel channel)
        {
            if (channel != null)
            {
                this.ChannelId = channel.ChannelId;
                this.ChannelName = channel.ChannelName;
            }
            else
            {
                this.ChannelId = "";
                this.ChannelName = "";
            }        
        }

        /// <summary>
        /// 获取或设置通道Id
        /// </summary>
        public string ChannelId
        {
            get; set;
        }

        /// <summary>
        /// 获取或设置通道名称
        /// </summary>
        public string ChannelName
        {
            get; set;
        }
    }
}
